<?php
require_once('UserClass.php');
  
$User = new User();

if(!isset($_POST['daftar']))
{
    header("../page/DAFTAR.php");    
}
else {
    
    $nama_user = $User->EscapeString($_POST['nama_user']);
    $alamat_user = $User->EscapeString($_POST['alamat_user']);
	$hp = $User->EscapeString($_POST['hp']);
    $email = $User->EscapeString($_POST['email']);
	$username = $User->EscapeString($_POST['username']);
    $password = $User->EscapeString($_POST['password']);
	$konfirm_password = $User->EscapeString($_POST['konfirm_password']);
    
    $User->AddUser($nama_user,$alamat_user,$hp,$email,$username,$password,$konfirm_password);
	   
}

$User->Disconnect();
 
?>
